import { Big } from "../core/Big";
import { Player } from "../core/Player";
import { Terrain } from "../core/Point";

export class 顽石 extends Big{
    
    aliveTime = 2   //能存活的回合数
    
    onEvolved(): void {
        this.actionTime = 0
        this.update()
    }

    turnStart(): void {
        this.actionTime = 0
    }

    terrainAdapt() {
        switch (this.point.terrain) {
            case Terrain.SHAN:
            case Terrain.SHUI:
                this.die(this.player)
        }
    }

    /** 你干不碎我 */
    attacked(player:Player) {
        return false
    }
}